Method and System of Selecting Word Sequence for Text Written in Language Without Word Boundary Markers

ABSTRACT

The present disclosure discloses a method and apparatus of selecting a word sequence for a text written in a language without word boundary in order to solve the problem of having excessively large computation load when selecting an optimal word sequence in existing technologies. The disclosed method includes: segmenting a segment of the text to obtain different word sequences; determining a common word boundary for the word sequences; and performing optimal word sequence selection for portions of the word sequences prior to the common word boundary. Because optimal word sequence selection is performed for portions of word sequences prior to a common word boundary, shorter independent units can be obtained, thus reducing computation load of word segmentation.

RELATED APPLICATIONS

This application is a National Stage of International Application No. PCT/US09/66753, filed Dec. 4, 2009, entitled “METHOD AND SYSTEM OF SELECTING WORD SEQUENCE FOR TEXT WRITTEN IN LANGUAGE WITHOUT WORD BOUNDARY MARKERS”, claiming priority from Chinese patent application No. 200810192934.4, filed Dec. 31, 2008, entitled “METHOD AND SYSTEM OF SELECTING WORD SEQUENCE FOR TEXT WRITTEN IN LANGUAGE WITHOUT WORD BOUNDARY MARKERS”, which are hereby incorporated in their entirety by reference.

TECHNICAL FIELD

The present disclosure is generally related to a field of textual information processing and, more particularly, to selecting a word sequence for text written in language without word boundary markers.

BACKGROUND

Among languages and texts over the world, one type of languages, such as English and German, has word boundary markers and generally uses a space as a boundary marker to divide between words. Another type of languages includes languages without word boundary marker, such as Chinese, Japanese and Korean, in which no delimiter exists between words within a sentence. As computer technology develops, applications such as search engine, text search and machine translation all involve the issue of text processing. Therefore, how to segment a sentence into words and phrases has become a primary concern.

For ease of description, the Chinese language is used as an example for illustration, although the following description applies to similar languages other than the Chinese language. Chinese word segmentation technology has been around for several decades. As early as the 1980's, people have started to investigate how to use computer to automatically segment Chinese terms. Word segmentation refers to the process of identification of each meaningful term from a sentence composed thereof.

One example of Chinese word segmentation includes word matching. Terms in a given string of Chinese words are matched to corresponding terms in a dictionary (or lexicon). When a match cannot be found in the dictionary for a given term, the term is further segmented into individual words, or Chinese characters. Accordingly, simple word segmentation can be completed. Thereafter, word sequences can be formed.

For example, a sentence such as “

” can be processed as described above by looking up a dictionary. In particular, this sentence can be segmented into the terms of “

” (English translation of the terms: China-aerospace-officials-are invited-to-U.S.-to meet with-space-agency-officials). However, this approach may fail when ambiguity exists. For example, “

” may be mistakenly segmented into “

” (English translation of the terms: develop-China-home) while the correct answer is “

” (English translation of the terms: developing-country). As another example, “

” may be mistakenly segmented into “

” (English translation of the terms: Shanghai University-town-bookstore) while the correct answer is “

” (English translation of the terms: Shanghai-College Town-bookstore).

In order to solve the problem of ambiguity, all possible word sequences need to be considered. In one of the examples above, the phrase “

” can be segmented into the two word sequences of “

” and “

”. Consequently, in this case, certain optimization rules of selecting a word sequence is needed to select the latter as the optimal word sequence.

A maximum matching method known as MMSEG is a simple algorithm of selecting an optimal word sequence based on a number of rules such as largest term matching and maximum average word length. Another comparatively more sophisticated method is a statistical language model proposed by Dr. Jin Guo of Tsinghua University during the 1990's.

The statistical model computes probabilities of occurrence of a sentence upon word segmentation and reckons a word sequence having the highest probability to be the optimal word sequence. Simply put, a probability of occurrence of a sentence refers to a product of probabilities of each term, given the occurrence of respective terms prior thereto. For the first word sequence in the above example, its probability is the probability of having started with “

” multiplied by the probability of having “

” behind “

” and further multiplied by the probability of having “

” behind “

” and “

”. This method of selecting an optimal word sequence has proven to be accurate and effective.

However, this simple and effective approach of word segmentation has a relatively serious problem. That is, when a sentence is very long, a larger variety of word sequences exist. If all possible word sequences are exhaustively listed and probabilities of the sentence in each possibility are computed, computational load may be tremendous. Not only does the statistical model face this problem, other methods of selecting an optimal word sequence also encounter the problem of excessively large computational load.

SUMMARY

In order to solve the problem of having excessively large computational load when selecting an optimal word sequence in an event a large variety of word sequences exist in existing technologies, exemplary embodiments of the present disclosure provides a computer-implemented method of selecting a word sequence for a text written in a language without word boundary marker. The method includes:

segmenting a segment of the text to obtain different word sequences, where each word sequence includes at least one word segmentation unit that is different from word segmentation units included in other word sequences;

determining whether a position of a word boundary after a word segmentation unit in one word sequence is the same as a position of a word boundary after a word segmentation unit in another sequence, and reckoning the same positioned word boundary to be a common word boundary for the word sequences; and

performing optimal word sequence selection for portions of the word sequences before the common word boundary, where the portions of the word sequences before the common word boundary separately includes at least one word segmentation unit that is different from word segmentation units in portions of other word sequences before the common word boundary.

The exemplary embodiments of the present disclosure further provides a computer implemented system of selecting a word sequence for a text written in a language without word boundary marker, which includes:

a word segmentation processing module, used for segmenting a segment of the text to obtain different word sequences, where each word sequence separately includes at least one word segmentation unit that is different from word segmentation units in other word sequences;

a word boundary determination module, used for determining whether a position of a word boundary after a word segmentation unit in one word sequence is the same as a position of a word boundary after a word segmentation unit in another sequence, and reckoning the same positioned word boundary to be a common word boundary for the word sequences; and

a word sequence selection module, used for performing optimal word sequence selection for portions of the word sequences before the common word boundary, where the portions of the word sequences before the common word boundary separately includes at least one word segmentation unit that is different from word segmentation units in portions of other word sequences before the common word boundary.

As illustrated in the specific implementation scheme provided in this disclosure, a word boundary is usually generated at a punctuation that divides between sentences, thus easily obtaining shorter independent units. For sentences having a number of ambiguities (e.g., a sentence having three common word boundaries be created because of having three sources of ambiguity), respective computation load will be reduced. If a term in a dictionary includes punctuation, a word boundary may not be generated at the punctuation, thus avoiding incorrect word segmentation. Moreover, requirement(s) for merging is/are easily met. Word sequences may be merged as long as same boundaries on the right hand side exist for word segmentation units. The requirement for merging is more accurate. Because the smallest units segmented by the word boundaries are independent, merging is performed among the smallest units for all word sequences. Not only is this reasonable, it is also plausible without ignoring any possibly correct word segmentations.

DESCRIPTION OF DRAWINGS

FIG. 1 shows a flow chart of a process in accordance with one embodiment.

FIG. 2 shows a structural diagram of a process in accordance with one embodiment.

DETAILED DESCRIPTION

In order to facilitate understanding of and implementations by a technical person in the art, schemes are described using exemplary embodiments in the present disclosure. First, certain terms used in the exemplary embodiments of the present disclosure are explained. A word boundary refers to a position that is between neighboring words in a sentence but not stridden over by a word, including the beginning and the end of the sentence. For example, the sentence “

” is segmented into the collection of sentence segments, or terms, of “

” through word matching. The collection of the terms “

” is called a word sequence while matched terms such as “

” and “

” are referred to as word segmentation units. A string of Chinese words that cannot be matched is segmented further into individual words that are also called word segmentation units. Word segmentation units obtained upon word matching are in turn appended to word sequence(s). All of the dash signs in the above sentence denote the word boundaries within the sentence. The disclosed embodiments use a dash sign to illustrate a word boundary and should not be limited thereto.

As multiple word sequences appear due to word ambiguities, a number of word boundaries appear in the sentence. For example, the two word sequences of “

” can have two different word boundaries, namely: “

” and “

”. An operation of merging word sequences is based on a concept of common word boundaries. In this example, there is a common word boundary for these two word sequences prior to the term “

”.

Evidently, if a sentence has punctuations that cannot form a word, e.g., a comma, word boundaries must exist on the left and right hand sides of this comma in all word sequences. Similarly, common word boundaries must exist at positions where no ambiguity exists.

The sentence “

” is used as an example below to explain the function of common word boundaries in word sequence merging. This sentence has two word sequences, or more accurately, two word sequences before the common word boundary (i.e., prior to the term “

”). Because the word boundary before the terms “

” is a common word boundary for these two word sequences, this indicates that portions before and after the word boundary are mutually independent. As such, an optimal word sequence prior to the word boundary may be selected. A completely same result can be obtained for selecting an optimal word sequence prior to the word boundary and for selecting an optimal word sequence with “

” being included.

Therefore, the operation of merging word sequences using a common word boundary can be defined as follows: in the course of word segmentation, if a common word boundary appears, all word sequences prior to the word boundary are merged to select an optimal word sequence while word segmentation continues after this word boundary.

FIG. 1 illustrates a computer-implemented process 100 of selecting a word sequence for a text written in a language without word boundary marker. The process 100 includes the following actions:

At 101, a segment of a text T is inputted.

At 102, matched terms and unmatched terms in the inputted text T are determined through word matching to obtain word segmentation units.

At 103, the word segmentation units obtained after word matching are appended to word sequence(s).

At 104, at a position where ambiguity exists, the word sequence(s) is/are expanded to obtain various word sequences.

At 105, the various word sequences are merged through a common boundary and optimal word sequence(s) is/are selected.

For illustrative purpose, an example of a search engine is used below to explain the process 100. The following description is also applicable to applications such as text search and machine translation.

At 101, an inputted text T is received through an interface before a search is performed by the search engine. A segment of the text T may include: S₁S₂S₃S₄S₅S₆S₇, where each of S₁-S₇ separately represents a single word.

At 102, a word segmentation processing module of the search engine scans the segment of the text T from left to right once (scanning herein is made from left to right because words are typically expressed from left to right in normal texts; if words are expressed from right to left in a text, scanning will be made from right to left therein), and compares word groups in a lexicon (having a large number of pre-stored word groups) therewith. A term is matched if a word group in the lexicon corresponding to the term is encountered. For example, through word matching, the word segmentation processing module obtains “S₁S₂” as an unmatched term, “S₃S₄S₅S₆” as a matched term, “S₃S₄” and S₅S₆” as matched terms and “S₇” as an unmatched term. Here, a matching rule refers to performing subsequent word matching after the first word of a matched term obtained in previous word matching or, alternatively, after an unmatched word obtained in previous word matching. In one embodiment, if a matched term “S₁S₂” is obtained as a word segmentation unit after the first word matching (where the first word matching begins from the first word “S₁” in the segment of the text T), new word matching then begins after “S₁”.

In another embodiment, if a single word “S₁” is obtained as a word segmentation unit after the first word matching, new word matching will begin after “S₁”. If a term such as “S₂S₃” is matched after “S₁” of the text T, a third word sequence may exist in subsequent procedures.

A summary of the process of word matching is described as follows:

1. The word segmentation processing module finds matched terms from a lexicon (or dictionary) word after word.

2. When the word segmentation processing module finds a matched term, subsequent word matching will begin with the first word after the matched term. If no matched term is found by the word segmentation processing module, subsequent word matching will begin after the particular word of concern.

3. The word segmentation processing module repeats the above two steps of term matching from the beginning of the sentence until the end of the sentence.

The above method of consulting a dictionary/lexicon for word segmentation to obtain various word segmentation units is merely a preferred scheme according to one embodiment. The present disclosure is not limited thereto. For example, an Internet search engine may be used to perform a search for the inputted segment of the text T to obtain a variety of word segmentation units.

At 103, the word segmentation processing module first establishes a preliminary word sequence collection for addition of word segmentation units. The preliminary word sequence collection is initially an empty collection without word segmentation unit. After 102, the word segmentation processing module adds word segmentation units obtained thereby to the preliminary word sequence collection to track word sequences obtained thus far.

During this addition process, if the word segmentation processing module finds that a matched term is located after all the matched terms of a word sequence, the word segmentation processing module adds the newly found matched term to that word sequence. If the word segmentation processing module finds that the matched term does not appear after all the matched terms of any one word sequence, the word segmentation processing module will create a new word sequence. For example, the word segmentation processing module first adds the word segmentation unit “S₁S₂” to the preliminary word sequence collection to obtain a word sequence “S₁S₂”. Because the word segmentation unit “S₃S₄S₅S₆” is positioned after the word segmentation unit “S₁S₂”, “S₃S₄S₅S₆” is appended to that word sequence to obtain a word sequence: “S₁S₂S₃S₄S₅S₆”. Moreover, as the word segmentation unit “S₃S₄” is positioned after “S₁S₂”, “S₃S₄” may be appended to the word sequence “S₁S₂”. However, because “S₃S₄” is not positioned after the word segmentation unit “S₃S₄S₅S₆”, “S₃S₄” cannot be appended to the word sequence “S₁S₂-S₃S₄S₅S₆”. As such, the word segmentation processing module creates a new word sequence: “S₁S₂-S₃S₄”.

In one embodiment, rules of appending word segmentation units are as follows:

1. If the word segmentation processing module finds that a new word segmentation unit appears after all word segmentation units of a word sequence, this word segmentation unit will be appended to that word sequence.

2. If the word segmentation processing module finds that a new word segmentation unit does not appear after all word segmentation units of any one word sequence, a new word sequence is added with this new word segmentation unit.

In another embodiment, a word segmentation unit is added when multiple word sequences exist. After the word segmentation processing module obtains two word sequences “S₁S₂-S₃S₄S₅S₆” and “S₁S₂-S₃S₄”, for example, the word segmentation processing module appends the word segmentation unit “S₅S₆” to the word sequence “S₁S₂-S₃S₄” to obtain a word sequence “S₁S₂-S₃S₄-S₅S₆”.

During the procedure of expanding a word sequence at 104, the number of word sequence(s) is increased not only in a situation where the word segmentation processing module cannot append a new word segmentation unit to existing word sequence(s), but also in a situation where multiple word segmentation units are created at the same position and branches are generated from a word sequence at that time.

As illustrated in the above example, the word sequence “S₁S₂” is the original word sequence. The word segmentation units “S₃S₄” and “S₃S₄S₅S₆” are new word segmentation units generated from the same position. These two new word segmentation units are separately expanded from the original word sequence “S₁S₂”, resulting in the word sequences “S₁S₂-S₃S₄” and “S₁S₂-S₃S₄S₅S₆”, respectively. The word segmentation processing module also appends the word segmentation unit “S₅S₆” to “S₁S₂-S₃S₄” to obtain the word sequence “S₁S₂-S₃S₄-S₅S₆”.

In reality, the above procedure refers to a process of addition of a new word segmentation unit to an original word sequence by the word segmentation processing module. One difference is as follows: when multiple word segmentation units are added at one time, the word segmentation processing module duplicates the original word sequence.

During the procedure of merging word sequences at 105, a word boundary determination module determines word boundaries in each of the above word sequences by looking for “-” in respective word sequences. Moreover, based on the position of the word found before “-” in the entire text, the word boundary determination module determines the position of that particular “-”. In one embodiment, the word boundary determination module may determine that the “-” which is located after “S₁S₂” is at the second position, for example, if this “-” is positioned after the second word “S₂” in the entire text. Alternatively, the word boundary determination module may determine that the “-” is positioned at the third position because this “-” is located before the third word “S₃”. The rules for merging word sequences using a word boundary will be described below.

Upon finding that several word sequences have a word boundary at the same position, the word boundary determination module notifies a word sequence selection module to merge word sequences that appear before that word boundary in the original sentence or phrase. Specifically, when the position of a word boundary after a word segmentation unit in one word sequence is the same as the position(s) of word boundary/boundaries after certain word segmentation unit(s) in other word sequence(s), the word boundary determination module determines that this word boundary is a common word boundary for these word sequences. For example, for the word sequences “S₁S₂-S₃S₄-S₅S₆-S₇” and “S₁S₂-S₃S₄S₅S₆-S₇”, the “-” located after “S₁S₂” is a common word boundary for these two word sequences (with both at the second position) while the “-” located after “S₅S₆” and “S₃S₄S₅S₆” is also a common word boundary for these two word sequences (with both at the sixth position).

In one embodiment, if the word boundary determination module observes that the positions of word boundaries after the last word segmentation units in word sequences obtained after expansion of a word sequence are the same, the word boundary determination module notifies the word sequence selection module that these word sequences can be merged. For example, in the course of expanding a word sequence at 104, the word sequence “S₁S₂” is the original word sequence. Word segmentation units “S₅S₆” and “S₃S₄S₅S₆” are the last matched terms separately along two different paths with positions of respective word boundaries thereafter being the same. The word boundary determination module then notifies the word sequence selection module that these word sequences can be merged into one. Upon receiving notification, the word sequence selection module may select the word sequence “S₁S₂-S₃S₄S₅S₆-S₇” between the two word sequences of “S₁S₂-S₃S₄-S₅S₆-S₇” and “S₁S₂-S₃S₄S₅S₆-S₇” as the optimal word sequence based on a selection algorithm. Which word sequence is specifically selected to be the optimal word sequence will depend on the selection algorithm adopted by the word sequence selection module. If a statistical algorithm is used, the one having the highest probability of occurrence among various word segmentation paths is selected. If the MMSEG word segmentation algorithm is used, the one having the largest matched term is selected. If more than one having the largest matched terms is found, then the one having the largest average length is selected. In any event, multiple word sequences may still remain at the end.

Based on the foregoing method, the word sequence “S₁S₂-S₃S₄S₅S₆-S₇” may be selected to be the optimal word sequence, for example. The search engine then conducts keyword searching.

The above segment of the text T, having only one source of ambiguity, has been used to illustrate the idea of the present scheme. For illustrative purpose only, an example of the present scheme will now be described below using a segment “S₁S₂S₃S₄S₅S₆S₇S₈S₉S_(a)” of the text T that has two sources of ambiguity, in which “S₁S₂S₃S₄S₅” can be segmented into “S₁S₂S₃-S₄S₅” and “S₁S₂-S₃S₄S₅” while “S₆S₇S₈S₉S_(a)” can be segmented into “S₆S₇-S₈S₉S_(a)” and “S₆S₇S₈-S₉S_(a)”.

The interface of the search engine receives the segment “S₁S₂S₃S₄S₅S₆S₇S₈S₉S_(a)” of the text T.

The word segmentation processing module scans the segment of the text T from left to right once and compares the word groups in a lexicon (that has a tremendous number of pre-stored word groups) therewith. Matched word segmentation units “S₁S₂” and “S₁S₂S₃” are first added to two preliminary word sequence collections that have been pre-stored in a memory to obtain word sequences “S₁S₂” and “S₁S₂S₃” which are stored in two different storage areas of the memory. The word segmentation processing module then appends the word segmentation unit “S₃S₄S₅” to the word sequence “S₁S₂” to obtain “S₁S₂-S₃S₄S₅” and appends the word segmentation unit “S₄S₅” to “S₁S₂S₃” to obtain “S₁S₂S₃-S₄S₅”. Upon finding that the last word of each of the newly appended word segmentation units “S₃S₄S₅” and “S₄S₅” is “S₅” (i.e., the fifth word in the text T), the word boundary determination module determines that the word sequences “S₁S₂-S₃S₄S₅” and “S₁S₂S₃-S₄S₅” are word sequences having a common word boundary. The word boundary determination module notifies the word sequence selection module to merge the word sequences “S₁S₂-S₃S₄S₅” and “S₁S₂S₃-S₄S₅”. The word sequence selection module selects the word sequence “S₁S₂-S₃S₄S₅” between the word sequences “S₁S₂-S₃S₄S₅” and “S₁S₂S₃-S₄S₅” using the MMSEG word segmentation algorithm (or the statistical algorithm). Moreover, the memory space storing the word sequence “S₁S₂S₃-S₄S₅” is emptied at that time. Upon matching the word segmentation units “S₆S₇” and “S₆S₇S₈”, the word segmentation processing module duplicates the word sequence “S₁S₂-S₃S₄S₅”. Two equivalent word sequences “S₁S₂-S₃S₄S₅” are separately stored in two different storage areas of the memory. After appending the word segmentation units “S₆S₇” and “S₆S₇S₈” separately to the two equivalent word sequences “S₁S₂-S₃S₄S₅”, word sequences “S₁S₂-S₃S₄S₅-S₆S₇” and “S₁S₂-S₃S₄S₅-S₆S₇S₈” are obtained. The word segmentation processing module obtains a match of the word segmentation unit “S₈S₉S_(a)” and appends this word segmentation unit “S₈S₉S_(a)” to the word sequence “S₁S₂-S₃S₄S₅-S₆S₇” to obtain a word sequence “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)”. The word segmentation processing module then obtains a match of the word segmentation unit “S₉S_(a)” and appends this word segmentation unit “S₉S_(a)” to the word sequence “S₁S₂-S₃S₄S₅-S₆S₇S₈” to obtain a word sequence “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)”. Upon finding that the last word of each of the newly added word segmentation units “S₈S₉S_(a)” and “S₉S_(a)” is “S_(a)” (i.e., the tenth word in the text T), the word boundary determination module determines that the word sequences “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” and “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)” are word sequences having a common word boundary. The word boundary determination module notifies the word sequence selection module to merge the word sequences “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” and “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)”. The word sequence selection module selects the word sequence “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” between the two word sequences “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” and “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)” using the MMSEG word segmentation algorithm (or the statistical algorithm). Moreover, the memory space storing the word sequence “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)” is emptied at that time.

If more than two sources of ambiguity exist in the text T, the procedure similar to that for a segment of the text T is repeatedly performed. If the text T has three sources of ambiguity with each source of ambiguity creating two different word segmentation units, the procedure similar to that for a segment of the text T is repeatedly performed for three times. If existing technology is used here, an optimal word sequence will be selected from among eight sequences. On the other hand, the present exemplary method only performs selection of an optimal word sequence for three times with each selection being made between two word sequences, thus reducing computation load. Furthermore, if the lexicon has such terms as “

”, a word boundary will not be generated at the punctuation “•” in the middle of “

” because word sequences prior to common word boundary/boundaries have been merged. Therefore, incorrect segmentation will not result.

In one embodiment, when the positions of the last words of the last word segmentation units obtained in word sequences are the same, these word sequences may not be merged immediately. For example, for the word sequences “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” and “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)”, word sequence merging is not performed for the word sequences “S₁S₂-S₃S₄S₅” and “S₁S₂-S₃S₄S₅” when these word sequences are obtained. Rather, word sequence merging is performed for the word sequences and “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)” when these word sequences are obtained.

In one embodiment, when a common word boundary appears among the obtained word sequences, word sequences after the common word boundary may be merged. The following example uses “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” and “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)” as examples for illustration. Upon obtaining a common word boundary in the word sequences “S₁S₂-S₃S₄S₅-S₆S₇-S₈S₉S_(a)” and “S₁S₂-S₃S₄S₅-S₆S₇S₈-S₉S_(a)”, word sequence merging is performed for word sequences “S₆S₇-S₈S₉S_(a)” and “S₆S₇S₈-S₉S_(a)” after the common word boundary.

The advantages of merging word sequences using a common word boundary are revisited herewith. As a word boundary is usually generated at a punctuation that serves as a division between sentences, shorter independent units can easily be obtained and computational load of word segmentation may thereby be reduced. If a term in a dictionary includes punctuation, a word boundary may not be generated at the punctuation, thus avoiding incorrect word segmentation. Moreover, any requirement for merging can be easily met. Word sequences may be merged as long as the same boundary exists on the right hand side of the word segmentation units in concern. Because the smallest units segmented by the word boundaries are independent, merging is performed among the smallest units for all word sequences. Not only is this reasonable, it is also plausible without ignoring any possibly correct word segmentations.

FIG. 2 illustrates a computer-implemented system 200 of selecting a word sequence for a text written in a language without word boundary marker. The system 200 includes:

a word segmentation processing module 201 that segments a segment of the text to obtain different word sequences, where each word sequence separately includes at least one word segmentation unit that is different from word segmentation units in other word sequences;

a word boundary determination module 202 that determines whether a position of a word boundary after a word segmentation unit in one word sequence is the same as a position of a word boundary after a word segmentation unit in another sequence, and recognizes the same positioned word boundary to be a common word boundary for the word sequences; and

a word sequence selection module 203 that performs optimal word sequence selection for portions of the word sequences before the common word boundary, where the portions of the word sequences before the common word boundary separately includes at least one word segmentation unit that is different from word segmentation units in portions of other word sequences before the common word boundary.

In one embodiment, the word sequence selection module 203 is further configured to perform no further optimal word sequence selection in the event that no further common boundary exists after the common boundary. Otherwise, the word sequence selection module 203 continues the optimal word sequence selection after performing optimal word sequence selection for the portions of the word sequences before the common word boundary.

In one embodiment, the word segmentation processing module 201 is further configured to match a word string of the segment of the text against terms in a dictionary to obtain a word segmentation unit, add the word segmentation unit into a word sequence, and expand the word sequence into the different word sequences in the event that ambiguity exists in the word string and that multiple word segmentation units are needed to be added.

In one embodiment, the word segmentation processing module 201 is further configured to find matched terms in the dictionary word after word, and perform next matching starting from the second word of the matched term in the event that a matched term is found. Otherwise, the word segmentation processing module 201 performs the next matching starting from the first word of an unmatched word.

In one embodiment, the word segmentation processing module 201 is further configured to add the new word segmentation unit into that one word sequence in the event that a new word segmentation unit appears after all word segmentation unit of one word sequence, expand all existing word sequences, adding a new word sequence in the event that a new word segmentation unit does not appear after all word segmentation of any one word sequence, and add the new word segmentation unit into the new word sequence.

In one embodiment, the word boundary determination module 202 is further configured to determine, among various word sequences obtained after expanding the existing word sequences, that a word boundary is a common word boundary for the various word sequences upon finding that the last word of the new word segmentation unit obtained has the same word boundary.

In one embodiment, the word sequence selection module 203 is further configured to keep one or more word sequences after performing optimal word sequence selection.

In one embodiment, the system 200 further includes:

a search engine module that conducts a search based on an optimal word sequence having been selected.

For the ease of description, the various components of the system 200 are separately described as various modules functionally. It should be understood that, in the implementations of the various embodiments of the disclosed system and method, the functions of the various modules may be implemented in one or more software and/or hardware.

From the exemplary embodiments described above, a person of ordinary skill in the art can clearly understand that the disclosed method and system may be implemented using software and universal hardware platform, or can be implemented using hardware only. However, in many instances, the former implementation using a combination of software and hardware is preferred. Based on this understanding, the technical scheme of the present disclosure, or portions contributing to existing technologies, may be implemented in the form of software products which are stored in a storage media such as ROM/RAM, disk and drive. The software includes instructions for a computing device (e.g., personal computer, server or networked device) to execute the method described in various exemplary embodiments or a certain part of the exemplary embodiment of the current disclosure.

Of course, a person of ordinary skill in the art can alter or modify the present disclosure in many different ways without departing from the spirit and the scope of this disclosure. Accordingly, it is intended that the present disclosure covers all modifications and variations which fall within the scope of the claims of the present disclosure and their equivalents. 

1. A method of selecting a word sequence for a text written in a language without word boundary marker, the method comprising: segmenting the text into a plurality of word sequences, each word sequence having at least one word segmentation unit that is different from the word segmentation units in other word sequences; determining a word boundary to be a common word boundary when a respective position of the word boundary after a word segmentation unit in a first word sequence of the plurality of word sequences is the same as a respective position of the word boundary after a word segmentation unit in a second word sequence of the plurality of word sequences; and selecting an optimal word sequence from one of a portion of the first word sequence that is before the common word boundary and a portion of the second word sequence that is before the common word boundary, at least one word segmentation unit in the portion of the first word sequence that is before the common word boundary being different from at least one word segmentation unit in the portion of the second word sequence that is before the common word boundary.
 2. The method as recited as claim 1, wherein the selecting either a portion of the first word sequence that is before the common word boundary or a portion of the second word sequence that is before the common word boundary to be an optimal word sequence comprises: when no further common boundary exists after the common boundary in the first and second word sequences, performing no further selection for another optimal word sequence; otherwise, continuing selection for another optimal word sequence for remaining portions of the first and second word sequences.
 3. The method as recited as claim 1, wherein the segmenting the text into a plurality of word sequences comprises: matching a word string of the text against terms in a dictionary to obtain a word segmentation unit; appending the word segmentation unit to a third word sequence of the plurality of word sequences; and when multiple word segmentation units are available to be appended, expanding the third word sequence into different word sequences by appending each of the multiple word segmentation units to the third word sequence.
 4. The method as recited as claim 3, wherein the matching a word string of the text against terms in a dictionary comprises: finding matched terms in the dictionary word after word; when a matched term is found, performing next matching starting from a second word of the matched term; otherwise, performing next matching starting from a first word of an unmatched word.
 5. The method as recited as claim 3, wherein the appending the word segmentation unit to a third word sequence comprises: when a new word segmentation unit appears after all word segmentation units of the third word sequence, appending the new word segmentation unit to the third word sequence; when no new word segmentation unit appears after all word segmentation units of any one word sequence, adding a new word sequence with the new word segmentation unit as the new word sequence.
 6. The method as recited as claim 3, wherein the determining a word boundary to be a common word boundary comprises: among the different word sequences, determining a word boundary to be a common word boundary for the different word sequences when the word boundary is after the last word of each of the multiple word segmentation units.
 7. The method as recited as claim 1, wherein upon selecting the optimal word sequence, one or more word sequences are maintained in a memory.
 8. The method as recited as claim 1, further comprising: performing a search based on an optimal word sequence having been selected.
 9. The method as recited as claim 1, wherein the selecting an optimal word sequence comprises selecting the optimal word sequence using a statistical algorithm.
 10. The method as recited as claim 1, wherein the selecting an optimal word sequence comprises selecting the optimal word sequence using a maximum matching algorithm.
 11. A computer-implemented system of selecting a word sequence for a text written in a language without word boundary marker, the system comprising: a word segmentation processing module configured to segment the text into a plurality of word sequences, each word sequence separately having at least one word segmentation unit that is different from the word segmentation units in other word sequences; a word boundary determination module configured to determine a word boundary to be a common word boundary when a respective position of the word boundary after a word segmentation unit in a first word sequence of the plurality of word sequences is the same as a respective position of the word boundary after a word segmentation unit in a second word sequence of the word sequences; and a word sequence selection module configured to select an optimal word sequence from one of a portion of the first word sequence that is before the common word boundary and a portion of the second word sequence that is before the common word boundary, at least one word segmentation unit in the portion of the first word sequence that is before the common word boundary being different from at least one word segmentation unit in the portion of the second word sequence that is before the common word boundary.
 12. The system as recited as claim 11, wherein the word sequence selection is further configured to: when no further common boundary exists after the common boundary in the first and second word sequences, perform no further selection for another optimal word sequence; otherwise, continue selection for another optimal word sequence for remaining portions of the first and second word sequences.
 13. The system as recited as claim 11, wherein the word segmentation processing module is further configured to: match a word string of the text against terms in a dictionary to obtain a word segmentation unit; append the word segmentation unit to a third word sequence of the plurality of word sequences; and when multiple word segmentation units are available to be appended, expand the third word sequence into different word sequences by appending each of the multiple word segmentation units to the third word sequence.
 14. The system as recited as claim 13, wherein the word segmentation processing module is further configured to: find matched terms in the dictionary word after word; when a matched term is found, perform next matching starting from a second word of the matched term; otherwise, perform next matching starting from a first word of an unmatched word.
 15. The system as recited as claim 13, wherein the word segmentation processing module is further configured to: when a new word segmentation unit appears after all word segmentation units of the third word sequence, append the new word segmentation unit to the third word sequence; when no new word segmentation unit appears after all word segmentation units of any one word sequence, add a new word sequence with the new word segmentation unit as the new word sequence.
 16. The system as recited as claim 13, wherein the word boundary determination module is further configured to: among the different word sequences, determine a the word boundary to be a common word boundary for the different word sequences when the word boundary is after the last word of each of the multiple word segmentation units.
 17. The system as recited as claim 11 wherein the word sequence selection module is further configured to keep one or more word sequences upon selecting the optimal word sequence.
 18. The system as recited as claim 11, further comprising: a search engine module configured to perform a search based on an optimal word sequence having been selected.
 19. The method as recited as claim 11, wherein the word sequence selection module selects the optimal word sequence using a statistical algorithm.
 20. The method as recited as claim 11, wherein the word sequence selection module selects the optimal word sequence using a maximum matching algorithm. 